package com.blb.missiom.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.blb.missiom.entity.Permission;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xray
 * @since 2023-01-31
 */
public interface IPermissionService extends IService<Permission> {

    //查询所有权限
    List<Permission> getPermissions();
    //分页查询所有权限
    Page<Permission> getPermissionsPage(Page<Permission> page);
    //通过id查权限
    Permission getPermissionById(Long id);
    //添加权限
    String addPermission(Permission permission);
    //通过id删除
    String removePermission(Long id);

    //更新
    String updatePermission(Permission permission);
}
